function Person(name) {
    this.name = name
}

Person.prototype.eat = function (food) {
    console.log(this, "is eating", food);
}

const p = new Person("张三")
p.eat()

function Student(name, zhuanye) {
    // this.name = name
    Person.call(this, name)
    this.zhuanye = zhuanye
}

Student.prototype = new Person()

// override 重写 覆写 覆盖
Student.prototype.eat = function (food) {
    console.log(this, "斯文地饕餮", food);
}

const curry = new Student("库里", "扔三分")
curry.eat("牙套")